import generalDropShipmentGovernmentEnterprise
    from '/src/components/approve/DynamicComponent/generalDropShipmentGovernmentEnterprise.vue'
import newAppleProducts from '/src/components/approve/DynamicComponent/newAppleProducts.vue'
import InternalPurchaseAndSalesApprove from '/src/components/approve/DynamicComponent/InternalPurchaseAndSalesApprove' // 内部购销
import InternalTransferApprove from '/src/components/approve/DynamicComponent/InternalTransferApprove' // 内部调拨
import BigCustomerRequestFormApprove from '/src/components/approve/DynamicComponent/BigCustomerRequestFormApprove' // 客户需求
import OneClickReturnApprove from '/src/components/approve/DynamicComponent/OneClickReturnApprove' // 苹果一键通退货
import crossCompanySalesApprove from "@/components/approve/DynamicComponent/CrossCompanySalesApprove.vue";

const components = [
    {
        billTypeCode: 'PLAN-NB',
        component: generalDropShipmentGovernmentEnterprise
    },
    {
        billTypeCode: 'PLAN-Z1',
        component: generalDropShipmentGovernmentEnterprise
    },
    {
        billTypeCode: 'PLAN-Z2',
        component: crossCompanySalesApprove
    },
    {
        billTypeCode: 'PLAN-Z4',
        component: generalDropShipmentGovernmentEnterprise
    },
    {
        billTypeCode: 'PLAN-A0',
        component: newAppleProducts
    },
    {
        billTypeCode: 'PLAN-A1',
        component: newAppleProducts
    },
    {
        billTypeCode: 'PLAN-UB',
        component: InternalPurchaseAndSalesApprove
    },
    {
        billTypeCode: 'PLAN-Z5',
        component: InternalTransferApprove
    },
    {
        billTypeCode: 'PLAN-CB',
        component: BigCustomerRequestFormApprove
    },
    {
        billTypeCode: 'PLAN-YT',
        component: OneClickReturnApprove
    }
]
export default function (billTypeCode) {
    return components.find(item => item.billTypeCode === billTypeCode)
}

